import http from '../request'

// 2、定义登录函数接口
export default{
    getSpuInfoPage (pageNo,pageSize,searchMap){
        return http({
            url: `/admin/product/${pageNo}/${pageSize}`,
            method: 'get',
            params:searchMap
        })
    },
    saveSpuInfo (spuInfo){
        return http({
            url: `/admin/product/saveSpuInfo`,
            method: 'post',
            data:spuInfo
        })
    },
    getSpuImageList(spuId){
        return http({
            url: `/admin/product/getSpuImageList/${spuId}`,
            method: 'get'
        })
    }
}



